home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / AMOSList / AMOSLIST / text0112.txt < prev    next >
Encoding:
Text File  |  1998-04-01  |  1.6 KB  |  51 lines

  1. Okay, now for a (perhaps) really silly question:
  2.  
  3. Can anyone assist me in how to use the combo of the fd-extension and identify.library?
  4.  
  5. The function I'm trying to use (in vain so far) is the IdHardware function. I've never
  6. really tried to utilize system-calls in AMOS before so I'm quite stumped on
  7. how I'm supposed to do this.
  8.  
  9. The systemcall is:
  10.  
  11. identify.library/IdHardware                        identify.library/IdHardware
  12.    NAME
  13.         IdHardware - get information about the system, string (V3)
  14.  
  15.    SYNOPSIS
  16.         String = IdHardware(Type,TagList)
  17.          D0.l               D0.l   A0.l
  18.  
  19.         STRPTR IdHardware(ULONG, struct TagItem *);
  20.  
  21.         String = IdHardwareTags(Type,Tag1,...)
  22.  
  23.         STRPTR IdHardwareTags(ULONG, ULONG,...);
  24.  
  25.    FUNCTION
  26.         Gets information about the current system environment. The result
  27.         is returned as read only string. This function is fully DraCo
  28.         compatible!
  29.  
  30.         Once a information has been read, it will be cached internally, so
  31.         changes will be ignored. Use IdHardwareUpdate() to clear the cache
  32.         contents.
  33.  
  34.    INPUTS
  35.         Type          -- (ULONG) Information type. These types are known:
  36.  
  37.                 IDHW_SYSTEM     -- What system is used?
  38.                         (e. g. "Amiga 4000")
  39.  
  40.  
  41. If you take a look with the tokenlist program that's shipped with one of the
  42. craft-extensions, all parameters should be numerical. Any ideas?
  43.  
  44. ---
  45. Facts are stubborn things; and whatever may be our wishes, our inclinations, or 
  46. the dictates of our passions, they cannot alter the state of facts and evidence.
  47. ---
  48. It's easier said than done.
  49.  
  50.  
  51.